package com.ziq.zcamp.bean.post

import com.ziq.zcamp.proguard.ProguardKeep
import java.io.Serializable

class ReplyCommentItem : ProguardKeep, Serializable {

    var reply_comment_id : String? = null
    var reply_info : User? = null //回复发起方的信息
    var be_replied_info : User? = null //被回复方的信息
    var reply_msg : String? = null //回复的内容
    var reply_like_num : Int? = null //回复的点赞数
    var reply_type : Int? = null //回复类型，2-回复评论，3-回复别人的回复

    var reply_like_status : Int? = null //回复的点赞状态，0：未点赞，1：点赞过
    var reply_create_time : Long? = null //回复的创建时间戳
    var reply_father_commentid: String? = null


    var parent :CommentItem? = null

    override fun equals(other: Any?): Boolean {
        if(other != null && other is ReplyCommentItem){
            if(other.reply_comment_id == reply_comment_id){
                return true
            }
        }
        return super.equals(other)
    }

    override fun hashCode(): Int {
        if(reply_comment_id != null){
            return reply_comment_id.hashCode()
        }
        return super.hashCode()
    }
}